#include<common.h>
#include<epoll.h>
#include<unistd.h>

#define MAX_MSG_LEN 1024

char mes[MAX_MSG_LEN];
void socket_regist(rp_buffer* newsoc){}

void socket_in(rp_buffer* ecur){
    int soc = ecur->fd;
    int tmp = read(soc, ecur->buffer, MAX_REPEAT_SIZE);
    assert(tmp == 10);
    ecur->cur_end = tmp;
    LOG_EXP(tmp);
    tmp=write(soc, ecur->buffer, tmp);
    assert(tmp == 10);
}

int main(){
    epoll_init(22122);
    epoll_work();
}